# -*- coding: UTF-8 -*-

import os


def remove():
    path = "C:/tmp/images5"
    files = os.listdir(path)
    for f in files:
        path_f = path + "/" + f
        if os.path.getsize(path_f) < 50 * 1024:
            print path_f
            os.remove(path_f)


remove()
